# -*- mode: snippet -*-
# name: dev pdf from grDevices
# key: pdf
# key: device#pdf@grDevices
# contributor : Shuguang Sun
# expand-env: ((yas-wrap-around-region t))
# --
pdf(file = "${1:filename}.pdf", width = ${2:7}, height = ${3:7}${4:, family = \"${5:$$(yas-choose-value '("sans" "serif" "mono" "GB1"))}\"})

$0

dev.off()